package com.tbvtc.agriculturalcreditchainserver2025.service;

import com.tbvtc.agriculturalcreditchainserver2025.dto.Pest.cropPestReportDto;
import com.tbvtc.agriculturalcreditchainserver2025.vo.Pest.getCropPestReportVo;

import java.io.IOException;
import java.util.List;

public interface PestService {
    /**
     * 添加病虫害报告
     * @param crropReportDto
     * @return
     * @throws IOException
     */
    void addPestReport(cropPestReportDto cropPestReport) throws IOException;
    /**
     * 获取病虫害报告
     * @param cropName
     * @return
     */
    List<getCropPestReportVo>  getPestReport(String cropName);
}
